# Git 全局设置:
git config --global user.name "account"
git config --global user.email "account@xxsite.com"

# 创建 git 仓库:
mkdir quick-deploy-main
cd quick-deploy-main
git init 
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/xxacount/xxprj.git
git push -u origin "master"

# 已有仓库?
cd existing_git_repo
git remote add origin https://gitee.com/xxacount/xxprj.git
git push -u origin "master"

#查看本地branch
git branch

# 当前的 main 分支重命名为 master  (遇到 error: src refspec master does not match any 错误时)
git branch -m main master